API Documentation
ComponentManager.h
1 // ComponentManager.h
3 //
5 
6 namespace nkWinUi
7 {
14  class ComponentManager final : public nkCommon::MaybeSingletonClass<ComponentManager>
15  {
16  public :
17 
34  Component* get (const nkMemory::StringView& name) const ;
44  Component* getByIndex (unsigned int index) const ;
50  void erase (const nkMemory::StringView& name) ;
51  } ;
52 }
nkWinUi::ComponentManager::getByIndex
Component * getByIndex(unsigned int index) const
nkWinUi::ComponentManager::get
Component * get(const nkMemory::StringView &name) const
nkWinUi::Component
Base class for any graphical component.
Definition: Component.h:12
nkWinUi::ComponentManager::erase
void erase(const nkMemory::StringView &name)
nkWinUi::ComponentManager::createOrRetrieve
Component * createOrRetrieve(const nkMemory::StringView &name, COMPONENT_TYPE componentType)
nkWinUi::COMPONENT_TYPE
COMPONENT_TYPE
Available component types.
Definition: ComponentType.h:12
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkWinUi::ComponentManager
Manages the components within nkWinUi.
Definition: ComponentManager.h:15
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition: Button.h:7